﻿using BaseData.Infrastructure.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaseData.Infrastructure.Permission
{
    public interface IPermissionsService
    {
        Task<List<PermissionTree>> GetPermissionTrees(int parentId);

        Task<int> AddRolePermission(AddRolePermissionDto dto);

        Task<List<int>> GetPermissionByRole(int roleId);
    }
}
